﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/QuanLy.Master" AutoEventWireup="true" CodeBehind="XemDanhSachLop.aspx.cs" Inherits="DT5_Anh09110006_Hung09110044_Vu09110157.QuanLy.XemDanhSachLop" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Xem Danh Sách Lớp</title>
    <style type="text/css">
        .datapager1
        {
        	text-align:center;
        	width:100%;
        	float:left;
        }
        .lop_hoc
        {
        	width:80%;
        	height:auto;
        	float:left;
        	-moz-border-radius:5px;
            -webkit-border-radius:5px;
            border: 1px solid #b4b4b4;
            background-color:ThreeDHighlight;
            margin-left:86px;
            margin-top:40px;
        }
        .label_lophoc
        {
        	text-align:left;
        	font-size:18px;
        	font-weight:bold;
        	width:200px;
        	border-bottom:1px solid #b4b4b4;
        }
        .value_lophoc
        {
        	font-size:18px;
        	font-weight:bold;
        	color:Red;
        	text-align:center;
        	border-bottom:1px solid #b4b4b4;
        }
        img.image_lophoc
        {
        	width:60px;
        	height:50px;
        	margin-left:120px;
        	margin-top:-40px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="listView1">
        
        <asp:ListView ID="lvDSLop" runat="server" ItemPlaceholderID="itemContainer">
            <LayoutTemplate>
                <div class="layout_info">
                    <asp:PlaceHolder ID="itemContainer" runat="Server" ></asp:PlaceHolder>
                    <div class="clear"></div>
                </div>
               <!--End layout template-->
            </LayoutTemplate>
            <ItemTemplate>
                <div class="lop_hoc">
                    <table border="0" cellspacing="0px" cellpadding="0" width="100%">
                        <th>
                            <td colspan="2"><img src="../Image/PIN3.png" class="image_lophoc"/></td>
                        </th>
                    	<tr>
                    		<td class="label_lophoc">Mã lớp:</td>
                            <td class="value_lophoc"><%# Eval("MaLop") %></td>
                    	</tr>
                        <tr>
                    		<td class="label_lophoc">Mô tả:</td>
                            <td class="value_lophoc"><%# Eval("MoTa") %></td>
                    	</tr>
                        <tr>
                    		<td class="label_lophoc">Giáo viên phụ trách:</td>
                            <td class="value_lophoc"><%# Eval("HoTenNV") %></td>
                    	</tr>
                        <tr>
                    		<td class="label_lophoc">Phòng học:</td>
                            <td class="value_lophoc"><%# Eval("PhongHoc") %></td>
                    	</tr>
                        <tr>
                    		<td class="label_lophoc">Lịch học:</td>
                            <td class="value_lophoc"><%# Eval("LichHoc") %></td>
                    	</tr>
                        <tr>
                    		<td class="label_lophoc">Ngày khai giảng:</td>
                            <td class="value_lophoc"><%# Convert.ToDateTime(Eval("NgayKhaiGiang")).ToString("dd/MM/yyyy") %></td>
                    	</tr>
                        <tr>
                    		<td class="label_lophoc">Sĩ số:</td>
                            <td class="value_lophoc"><%# Eval("SiSo") %></td>
                    	</tr>
                        <tr>
                    		<td class="label_lophoc">Học phí:</td>
                            <td class="value_lophoc"><%# Eval("HocPhi") %> (VNĐ)</td>
                    	</tr>
                    </table>
                </div>
            <!--  kết thúc Item template -->
            </ItemTemplate>
            <EmptyDataTemplate>
                <div class="message_empty">
                    Không có lớp học !
                </div>
            </EmptyDataTemplate>
        </asp:ListView>

        <div class="datapager1">
            <asp:DataPager ID="dataPaging" runat="Server" PagedControlID="lvDSLop" 
                PageSize="4" onprerender="dataPaging_PreRender">
                <Fields>
                    <asp:NextPreviousPagerField  PreviousPageImageUrl="~/Image/previous.png" ShowPreviousPageButton="true"
                    ShowNextPageButton="false" ButtonType="Image"/>
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField NextPageImageUrl="~/Image/next.png" ShowNextPageButton="true"
                    ShowPreviousPageButton="false" ButtonType="Image" />
                </Fields>
            </asp:DataPager>
        </div>
    </div>
</asp:Content>
